﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Address
    {
        //用户地址表
        private int id;//主键
        private string addres;//用户地址
        private string name;//收货人
        private decimal phone;//电话号码
        private int userid;//外键用户id
        private int rule;//是否为默认，默认为0
        public Address() { }
        public Address(string addres, string name, decimal phone, int userid, int rule)
        {
            this.addres = addres;
            this.name = name;
            this.phone = phone;
            this.userid = userid;
            this.rule = rule;
        }
        public Address(int id, string addres, string name, decimal phone, int userid, int rule)
        {
            this.id = id;
            this.addres = addres;
            this.name = name;
            this.phone = phone;
            this.userid = userid;
            this.rule = rule;
        }

        public int Id { get => id; set => id = value; }
        public string Addres { get => addres; set => addres = value; }
        public string Name { get => name; set => name = value; }
        public decimal Phone { get => phone; set => phone = value; }
        public int Userid { get => userid; set => userid = value; }
        public int Rule { get => rule; set => rule = value; }
    }
}
